package com.wan.personnel2.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.wan.personnel2.entity.UserInf;
import com.baomidou.mybatisplus.extension.service.IService;

import java.security.NoSuchAlgorithmException;

public interface UserInfService extends IService<UserInf> {

    UserInf dologin(String loginname, String password) throws NoSuchAlgorithmException;

    IPage<UserInf> getUserPageWithName(String loginname, Integer pageNum);

    boolean delUserInf(Integer id);

    boolean addUserInf(UserInf user) throws NoSuchAlgorithmException;
}
